#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# author: maxiao
# date: 2023-03-10 13:45
# description: 定义接口类，使在实现类中进行功能实现

from abc import ABCMeta
from abc import abstractmethod


class Person(metaclass=ABCMeta):
    """接口类"""

    @abstractmethod
    def say(self, name):
        pass

    def ability(self):
        pass

    def salary(self):
        pass


class Tester(Person):
    """接口的实现"""

    def say(self, name):
        print(f"我是{name},是一名软件测试工程师")

    def ability(self):
        print("我擅长于数据爬取，自动化测试的实现及linux脚本编写")

    def salary(self):
        print("我的薪资保密，不能公开哦！")


class Developer(Person):
    """接口的实现"""
    
    def say(self, name):
        print(f"我是{name}，是一位前端开发人员")

    def ability(self):
        print("我的能力有html javascript css等前端技术")

    def salary(self):
        print("我的薪资在1.7w左右")


if __name__ == "__main__":
    t = Tester()
    t.say("maxiao")
    t.ability()
    t.salary()

    print('-' * 50)

    d = Developer()
    d.say("张三")
    d.salary()
    d.ability()

